package com.cloud.tsp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cloud.api.domain.forward.VehicleForward;
import com.cloud.tsp.mapper.VehicleForwardMapper;
import com.cloud.tsp.service.IVehicleForwardService;
import org.springframework.stereotype.Service;

import jakarta.annotation.Resource;
import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author haohaibo
 * @since 2024-02-29
 */
@Service("vehicleForwardService")
public class VehicleForwardServiceImpl extends ServiceImpl<VehicleForwardMapper, VehicleForward> implements IVehicleForwardService {

    @Resource
    private VehicleForwardMapper vehicleForwardMapper;


    @Override
    public List<String> selectPlatName(LocalDate startTime, LocalDate endTime) {
        return vehicleForwardMapper.selectPlatName(startTime,endTime);
    }

    @Override
    public List<VehicleForward> getForwardCount(String platName) {
        return vehicleForwardMapper.getForwardCount(platName);
    }
}